package com.lp.feign;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClientConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user", configuration = LoadBalancerClientConfiguration.class)
public interface UserClients {

    @LoadBalanced
    @GetMapping("/user/info")
    String info(@RequestParam("id") Long id);

}
